//
//  Appearance.h
//  QKZhi-iOS
//
//  Created by CL on 16/7/12.
//  Copyright © 2016年 cn.com.qktz. All rights reserved.
//

#ifndef Appearance_h
#define Appearance_h

#define LOGIN_STATUS_CHANGE @"login_status_change" //登录状态改变通知

#define kStatusBarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height)
#define ISIphoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)

//(kStatusBarHeight == 20.f?NO:YES)

#define KScreenSize [UIScreen mainScreen].bounds.size
#define IsIphone6P KScreenSize.width==414
#define IsIphone6 KScreenSize.width==375
#define IsIphone5S KScreenSize.width==320

#define RateselecetDefultColor [UIColor colorWithHexString:@"E0210E"]
#ifdef DEBUG

#define CLog( s, ... ) NSLog( @"< %@:(%d) > %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#else

#define LKLog( s, ... )

#endif

#define Main_Screen_Height      [[UIScreen mainScreen] bounds].size.height
#define Main_Screen_Width       [[UIScreen mainScreen] bounds].size.width

/**
 *  相对iphone6 屏幕比
 */
#define KWidth_Scale    [UIScreen mainScreen].bounds.size.width/375.0f
#define KHEIGHT_Scale   (ISIphoneX ? 1.0: [UIScreen mainScreen].bounds.size.height/667.0f)

//#define TABBAR_HEIGHT  49
#define NAV_HEIGHT  (ISIphoneX ? 88:64)

#define NOSTATUS_BAR_HEIGHT (ISIphoneX ? 44.f : 0.f)

// 状态栏高度
#define STATUS_BAR_HEIGHT (ISIphoneX ? 44.f : 20.f)
// 导航栏高度
#define NAVIGATION_BAR_HEIGHT (ISIphoneX ? 88.f : 64.f)
// tabBar高度
#define TABBAR_HEIGHT (ISIphoneX ? (49.f+34.f) : 49.f)

// 安全域底部高度
#define bottom_HEIGHT (ISIphoneX ? 34.f : 0.f)
/// 高度系数 812.0 是iPhoneX的高度尺寸，667.0表示是iPhone 8 的高度，如果你觉的它会变化，那我也很无奈

#define SafeAreaTopHeight (SCREEN_HEIGHT == 812.0 ? 88 : 64)
/// 底部宏，
#define SafeAreaBottomHeight (SCREEN_HEIGHT == 812.0 ? 34 : 0)

#define NAVBAR_CHANGE_POINT 50


#define KeyWindows             [UIApplication sharedApplication].keyWindow
#define WeakSelf(weakSelf)      __weak __typeof(&*self)weakSelf = self;

typedef NS_ENUM(NSUInteger, InfoTopicsType) {
    InfoTopicsTypeRecommet = 1, // 头条
    InfoTopicsTypeVideo, //视频
    InfoTopicsTypePremierleague = 36, // 英超
    InfoTopicsTypeSpanish= 31, // 西甲
    InfoTopicsTypeBundesliga = 8, // 德甲
    InfoTopicsTypeSeriea = 34, // 意甲
    InfoTopicsTypeFrench = 11, // 法甲
    InfoTopicsTypeKeyboard, //解盘
};

typedef NS_ENUM(NSUInteger, ChoiceVideoType) {
    ChoiceVideoTypeALL = 1, // 全部
    ChoiceVideoTypeHot, //热门赛事
    ChoiceVideoTypeFootball // 足球
};

#import "UINavigationBar+Awesome.h"



#endif /* Appearance_h */
